package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SZazenReward extends Object implements IMessageBase
    {
        public var time:int;
        public var experience:int;
        public var nimbus:int;
        public var experienceAdd:int;
        public var nimbusAdd:int;
        public const _type:int = 12056;
        public static var _regist:SZazenReward = new SZazenReward(true);

        public function SZazenReward(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SZazenReward();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.time);
            param1.writeInt(this.experience);
            param1.writeInt(this.nimbus);
            param1.writeInt(this.experienceAdd);
            param1.writeInt(this.nimbusAdd);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.time = param1.readInt();
            this.experience = param1.readInt();
            this.nimbus = param1.readInt();
            this.experienceAdd = param1.readInt();
            this.nimbusAdd = param1.readInt();
            
        }

    }
}
